package cn.getech.data.development.service;

import cn.getech.data.development.entity.ProcInfo;
import cn.getech.data.development.entity.RealTimeTaskMenu;
import cn.getech.data.development.model.dto.RealTimeTaskMenuSaveDto;
import cn.getech.data.development.model.vo.*;
import cn.getech.data.intelligence.common.utils.R;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface RealTimeTaskMenuService extends IService<RealTimeTaskMenu> {

    R saveOrUpdate(RealTimeTaskMenuSaveDto dto);

    R deleteMenu(Integer id);

    List<RealTimeTaskMenuVO> menuList(RealTimeTaskMenuSearchVO vo);

    IPage<RealTimeTaskOpsVO> pageList(Page page, RealTimeTaskMenuSearchVO params);

    List<ProcInfo> procs(Long userId, Integer tenantId);

    List<IdAndNameVO> listByProcIdAndType(RealTaskTypeMenuSearchVO vo);

    List<Long> listUserIds(Long userId, Integer tenantId);
}
